package com.yifei.model.entity.system;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifei.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 角色表(SysRole)类
 *
 * @author yiFei
 * @since 2023-09-23 20:56:09
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("角色表")
@TableName("sys_role")
public class SysRole extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 364050261457531105L;

    @TableId
    private Long id;

    /**
     * 角色名称
     */
    @ApiModelProperty(value = "角色名称")
    private String name;

    /**
     * 角色编码
     */
    @ApiModelProperty(value = "角色编码")
    private String code;

    /**
     * 显示顺序
     */
    @ApiModelProperty(value = "显示顺序")
    private Integer sort;

    /**
     * 角色状态(1-正常；0-停用)
     */
    @ApiModelProperty(value = "角色状态(1-正常；0-停用)")
    private Integer status;

    /**
     * 逻辑删除标识(0-未删除；1-已删除)
     */
    @ApiModelProperty(value = "逻辑删除标识(0-未删除；1-已删除)")
    private Integer deleted;

}
